#define _CRT_SECURE_NO_WARNINGS 
#include <stdio.h>
int main()
{
	int arr[10];
	int max;
	for (int i = 0; i < 10; i++)
	{
		scanf("%d", &arr[i]);
		if (0 == i)
			max = arr[i];
		if (arr[i] > max)
			max = arr[i];
	}
	printf("%d", max);
	return 0;
}